package bamboo.drawingkid.views;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.StringItem;

public abstract class MmsEmailView extends Form implements CommandListener {
	
    protected final Command 				exitCommand; // Exit command for closing the MIDlet in the device UI.
    protected final Command 				backCommand;

	protected MmsEmailView(String text) {
		super("");
        StringItem helloText = new StringItem("MMS or Email View", text);
        super.append(helloText);
        backCommand = new Command("Back", Command.BACK, 1);
		exitCommand = new Command("Exit", Command.EXIT, 2);
		addCommand(backCommand);
        addCommand(exitCommand);
        setCommandListener(this);
        setCommandListener(this);
	}
	
    public abstract void commandAction(Command command, Displayable displayable);
    
}
